<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Dashboard - Admin Template</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/highstock.js"></script>
<script type="text/javascript" src="js/exporting.js" ></script>



<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<script>
    $(function() {
	$.getJSON('sensex.jsp', function(data) {
                                    

		// Create the chart
		window.chart = new Highcharts.StockChart({
			chart : {
				renderTo : 'bse'
			},

			rangeSelector : {
				selected : 1
			},

			title : {
				text : 'SENSEX Price'
			},

			series : [{
				name : 'SENSEX Price',
				data : data,
				type : 'area',
				threshold : null,
				tooltip : {
					valueDecimals : 2
				},
				fillColor : {
					linearGradient : {
						x1: 0, 
						y1: 0, 
						x2: 0, 
						y2: 1
					},
					stops : [[0, Highcharts.getOptions().colors[0]], [1, 'rgba(0,0,0,0)']]
				}
			}]
		});
	});
});

$(function() {
	$.getJSON('nifty.jsp', function(data) {

		// Create the chart
		window.chart = new Highcharts.StockChart({
			chart : {
				renderTo : 'nse'
			},

			rangeSelector : {
				selected : 1
			},

			title : {
				text : 'NIFTY Price'
			},

			series : [{
				name : 'NIFTY Price',
				data : data,
				type : 'area',
				threshold : null,
				tooltip : {
					valueDecimals : 2
				},
				fillColor : {
					linearGradient : {
						x1: 0, 
						y1: 0, 
						x2: 0, 
						y2: 1
					},
					stops : [[0, Highcharts.getOptions().colors[0]], [1, 'rgba(0,0,0,0)']]
				}
			}]
		});
	});
});

    
    
</script>

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>

<body>
	<div id="container">
    	<div id="header">
        	<h2>Stock Market Website</h2>
    <div id="topmenu">
            	<ul>
                    <li class="current"><a href="index.jsp">Home</a></li>
                    <li><a href="portfolio.jsp">Portfolio</a></li>
                    <li><a href="charts.jsp">Charts</a></li>
              </ul>
          </div>
      </div>
        <div id="top-panel">
        	  <form action="" name="quoteform" >
              	<input type="text" placeholder="Enter company symbol" name="sym_nm" id="sym_id" />
                <input type="submit" value="Get Stock Value" />
            </form>    
      	</div>
        <div id="wrapper">
            <div id="content">
       			
              <div id="infowrap">
              <div id="infobox">
                  <h3>BSE Stock</h3> 
                  <p id="bse"></p>
                  </div>
                  <div id="infobox" class="margin-left">
                    <h3>NSE Stock</h3> 
                    <p id="nse"></p>
                  </div>
                  <div id="infobox">
                    <h3>Top 5 Traded</h3>
                    <table>
						<thead>
							<tr>
                            	<th>Company</th>
                                <th>Price</th>
                                <th>Change</th>
                                <th>Change(%)</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Jennifer Kyrnin</a></td>
                                <td>1</td>
                                <td>14.95 ?</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Mark Kyrnin</a></td>
                            	<td>2</td>
                                <td>34.27 ?</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Virglio Cezar</a></td>
                                <td>2</td>
                                 <td>4.21 ?</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Todd Simonides</a></td>
                                <td>5</td>
                                <td>1472.56 ?</td>
                                <td>1%</td>
                            </tr>
                            <tr>
                            	<td><a href="#">Carol Elihu</a></td>
                                <td>1</td>
                                <td>9.95 ?</td>
                                <td>1%</td>
                            </tr>
						</tbody>
					</table>            
                  </div>
                  <div id="infobox" class="margin-left">
                    <h3>Last 5 Reviews</h3> 
                    <table>
						<thead>
							<tr>
                            	<th>Reviewer</th>
                                <th>Product</th>
                                <th>Action</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Jennifer Kyrnin</a></td>
                                <td><a href="#">Apple iPhone 3G 8GB</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
							<tr>
                            	<td><a href="#">Mark Kyrnin</a></td>
                            	<td><a href="#">Prenosnik HP 530 1,6GHz</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
							<tr>
                            	<td><a href="#">Virg?lio Cezar</a></td>
                                <td><a href="#">Fuji FinePix S5800</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
							<tr>
                            	<td><a href="#">Todd Simonides</a></td>
                                <td><a href="#">Canon PIXMA MP140</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
                            <tr>
                            	<td><a href="#">Carol Elihu</a></td>
                                <td><a href="#">Prenosnik HP 530 1,6GHz</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
						</tbody>
					</table>
                  </div>
                  <div id="infobox">
                    <h3>Top  5 Gainers</h3>
                    <table>
						<thead>
							<tr>
                            	<th>Company</th>
                                <th>Price</th>
                                <th>Change</th>
                                <th>Change(%)</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Jennifer Kyrnin</a></td>
                                <td>1</td>
                                <td>14.95 ?</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Mark Kyrnin</a></td>
                            	<td>14.97?</td>
                                <td>34.27 ?</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Virg?lio Cezar</a></td>
                                <td>15.31?</td>
                                <td>61.39 ?</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Todd Simonides</a></td>
                                <td>502.61?</td>
                                <td>1472.56 ?</td>
                                <td>1%</td>
                            </tr>
                            <tr>
                            	<td><a href="#">Carol Elihu</a></td>
                                <td>5.1?</td>
                                <td>9.95 ?</td>
                                <td>1%</td>
                            </tr>
						</tbody>
					</table>                 
                  </div>
                  <div id="infobox" class="margin-left">
                    <h3>Top 5 Losers</h3> 
                    <table>
						<thead>
							<tr>
                            	<th>Company</th>
                                <th>Price</th>
                                <th>Change</th>
                                <th>Change(%)</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Apple iPhone 3G 8GB</a></td>
                                <td>199.00 ?</td>
                                <td>24</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Fuji FinePix S5800</a></td>
                            	<td>365.24 ?</td>
                                <td>19</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Canon PIXMA MP140</a></td>
                                <td>59.50 ?</td>
                                <td>12</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Apple iPhone 3G 16GB</a></td>
                                <td>199.00 ?</td>
                                <td>10</td>
                                <td>1%</td>
                            </tr>
                            <tr>
                            	<td><a href="#">Prenosnik HP 530 1,6GHz</a></td>
                                <td>499.00 ?</td>
                                <td>6</td>
                                <td>1%</td>
                            </tr>
						</tbody>
					</table>
                  </div>
                  
              </div>
            </div>
            <div id="sidebar">
  				<ul>
                	<li><h3><a href="admin_home.jsp" class="house">Login</a></h3>
                            <font color="#FF0000">
                            <%
                            String msg=request.getParameter("msg");
                            if(msg!=null)
                                out.print(msg);
                            %>
                            </font>
                            <form action="login_check.jsp" id="login_id" name="login_nm" method="post">
                        <label>Email</label><br/>
                        <input type="text" name="usrnm_nm" id="usrnm_id" placeholder="Enter email"/><br/>
                        <label>Password</label><br/>
                        <input type="password" name="pwd_nm" id="pwd_id" placeholder="Enter Password"/><br/>
                        <label>User type</label><br/>
                        <input type="radio" name="usertype" id="usertype_id" value="0" checked="checked"/>Trader
                        <input type="radio" name="usertype" id="usertype_id" value="1"/>Expert
                        <input type="radio" name="usertype" id="usertype_id" value="2"/>Admin
<br/>
                        <input type="submit" name="login_nm" id="login_id" value="Login"/>
                        <input type="reset" value="reset" name="reset" />
                            </form>
                            
                          <a href="register.jsp">Register </a>
                    </li>
                    <li><h3><a href="#" class="user">Users</a></h3>
                    	<ul>
                        	<li><blockquote><q>Buy TCS shares at 500</q></blockquote>
                            	<a href="">Mr. H</a>
                            <!--    <a href="F:/English/Unseen/Wall" type="audio/mp3">Randy Jackson loves Yahoo!</a>-->
                            </li>
                        </ul>
                    </li>
      		</ul>       
          </div>
      </div>
        <div id="footer">
        <div id="styleswitcher">
            <ul>
                <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
                <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
                <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
                <li><a href="javascript: document.cookie='theme=5'; window.location.reload();" title="Mix" id="defswitch">m</a></li>
            </ul>
        </div><br />

        </div>
</div>
                       <!--     <script type="text/javascript" src="js/yahoo.js"></script> -->
</body>
</html>
